package model.stems;

import java.util.List;

import valueObject.stem.Stem;

import com.gabrielfernandes.database.client.DatabaseClient;
import com.gabrielfernandes.database.client.MySQLClient;

import dao.database.DatabaseParamsImpl;
import dao.stems.StemsDAO;

public class StemsModel implements StemsModelInterface { 
	private StemsModelInterface steamsDAO;
	protected DatabaseClient databaseClient;

	public StemsModel() {
		this.databaseClient = new MySQLClient(new DatabaseParamsImpl());
		this.steamsDAO = new StemsDAO(this.databaseClient);
	}

	@Override
	public List<Stem> getSteams() {
		List<Stem> stems = this.steamsDAO.getSteams();
		
		return stems;
	}

}